﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model List<ElingOA6_DSJCJ.Model.SoftwareCatalog>
<div class="main">
    <table width="1000" align="center" cellspacing="0" style="margin-top: 0px;">
        <td align="center" bgcolor="#FFFFFF">
            <table width="975" border="0" cellpadding="0" style="margin-top: 10px; margin-bottom: 150px;">
                <tr>
                    <td align="left">
                        @{
                            List<ElingOA6_DSJCJ.Model.SoftwareCatalog> list1 = (from m in Model where m.FPreSoftwareCatalogID == null select m).ToList();

                            foreach (var item1 in list1)
                            {
                            <table width="970" border="0" cellpadding="0" cellspacing="0" style="margin: 5px;">
                                <tr>
                                    <td width="14">
                                        <img src="@Url.Content("~/Content/images/xzleft.jpg", true)" width="14" height="74" /></td>
                                    <td height="74" align="left" style="background: url(@Url.Content("~/Content/images/xzmid.jpg", true)) repeat-x">
                                        <table width="630" border="0" align="left" cellpadding="0" cellspacing="0" style="margin-left: 30px; _margin-left: 15px;">
                                            <tr>
                                                <td height="30" class="downtitle">@item1.FSoftwareCatalogName</td>
                                            </tr>
                                            <tr>
                                                <td height="25">
                                                    @{
                                List<ElingOA6_DSJCJ.Model.SoftwareCatalog> list2 = (from m in Model where m.FPreSoftwareCatalogID == item1.FSoftwareCatalogID select m).ToList();
                                foreach (var item2 in list2)
                                {
                                                        <a href="/Software/SoftwareList?softwareid=@item2.FSoftwareCatalogID">@item2.FSoftwareCatalogName (@item2.SoftwareCount)</a>  
                                }
                                                    }
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="14">
                                        <img src="@Url.Content("~/Content/images/xzright.jpg", true)" width="14" height="74" /></td>
                                </tr>
                            </table>
                            }
                        }
                    </td>
                </tr>
            </table>
        </td>
    </table>
</div>
